package com.yami.shop.mystery.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 盲盒订单
 * @author wxf
 * @date 2023/4/13 9:21
 */
@Data
@TableName("tz_mystery_box_order")
public class MysteryBoxOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "主键")
    private Long orderId;

    @Schema(description = "盲盒盒子id")
    private Long mysteryBoxId;

    @Schema(description = "盲盒活动id")
    private Long activityId;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "订单号")
    private String orderNumber;

    @Schema(description = "商品数量")
    private Long prodCount;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "-1指无效，0指成功，1指已付款")
    private Integer state;

    @Schema(description = "盲盒盒子skuId")
    private Long mysteryBoxSkuId;

    public MysteryBoxOrder() {

    }

    public MysteryBoxOrder(Long activityId, Long mysteryBoxId, Long mysteryBoxSkuId, String userId, String orderNumber, Long prodCount) {
        this.activityId = activityId;
        this.mysteryBoxId = mysteryBoxId;
        this.mysteryBoxSkuId = mysteryBoxSkuId;
        this.userId = userId;
        this.orderNumber = orderNumber;
        this.prodCount = prodCount;
    }
}
